import request from '@/utils/request'

// 查询用车记录列表
export function listVehicleRecord(query) {
  return request({
    url: '/car/vehicleRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用车记录详细
export function getVehicleRecord(vehicleRecordId) {
  return request({
    url: '/car/vehicleRecord/' + vehicleRecordId,
    method: 'get'
  })
}

// 新增用车记录
export function addVehicleRecord(data) {
  return request({
    url: '/car/vehicleRecord',
    method: 'post',
    data: data
  })
}

// 修改用车记录
export function updateVehicleRecord(data) {
  return request({
    url: '/car/vehicleRecord',
    method: 'put',
    data: data
  })
}

// 删除用车记录
export function delVehicleRecord(vehicleRecordId) {
  return request({
    url: '/car/vehicleRecord/' + vehicleRecordId,
    method: 'delete'
  })
}
